#banner {
  min-height: 40vh;
  height: 47.1vw;
  max-height: 100vh;
  .swiper {
    .slider-caption {
      color: $white;
      justify-content: center;
      padding-bottom: 11.8%;
      position: relative;
      max-width: 800px;
      text-align: center;
      margin: 0 auto;
      left: 0;
      right: 0;

      h2 {
        color: $white;
        text-shadow: none;
        font-size: calc(20px + 1.375vw);
        letter-spacing: 0.25em;
        text-transform: none;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 0px;
        text-shadow: 1px 1px 1px $gray-400;
      }
      p {
        margin-top: 8px;
        font-size: calc(12px + 0.75vw);
        text-shadow: 1px 1px 1px $gray-400;
      }
    }
    .slide-down {
      display: none;
    }
  }
}

#news {
  .slider-element {
    .swiper {
      position: relative;
      .swiper-slide {
        height: auto;
        padding: 0 0px 15px;
        .news-item {
          height: 100%;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          border: 1px solid $gray-50;
          box-shadow: 0px 0px 15px 0px rgba(196, 203, 222, 0.43);
          transition: all 0.3s ease;
          .thumb {
            width: 100%;
            overflow: hidden;

            img {
              width: 100%;
              height: 100%;
              object-fit: cover;
              transition: all 0.3s ease;
            }
          }
          .title {
            font-size: 18px;
            font-weight: 600;
            margin: 10px 10px 0;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
          }
          .item-bottom {
            margin: 10px;
            font-size: 14px;
            text-align: justify;
          }
          &:hover {
            transform: translateY(-2px);
            .thumb {
              img {
                transform: scale(1.05);
              }
            }
            .title {
              text-decoration: underline;
            }
          }
        }
      }
    }
  }
}

.study-item {
  display: block;
  position: relative;
  height: 100%;
  padding-bottom: 50px;
  .thumb {
    position: relative;
    width: 100%;
    height: 100%;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .item-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;

    color: $gray-100;
    background: #727fb6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    .title {
      font-size: 20px;
      letter-spacing: 0.25em;
      line-height: 26px;
      font-weight: 600;
      padding: 12px;
      text-align: center;
    }
    .intro {
      padding: 12px 16px;
      text-align: justify;
    }
    .intro,
    .more {
      display: none;
      font-size: 14px;
    }

    transition: all 0.3s ease-in-out;
  }
  &:hover {
    .item-bottom {
      height: 100%;
      background: #727fb6;
      .title {
      }
      .intro,
      .more {
        display: block;
      }
    }
  }
}

/* swiper-btn */
.swiper-btn {
  display: flex;
  margin-top: 25px;
  align-items: center;
  justify-content: center;
  .swiper-button-next,
  .swiper-button-prev {
    width: 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 50%;
    background-color: $primary;
    position: static;
    color: #fff;
    margin-top: unset;
    &::after {
      content: "\ebcb";
      font-family: "novem-icons";
      font-size: inherit;
    }
    &.swiper-button-disabled {
      background-color: #aec5ce;
      cursor: no-drop;
    }
  }
  .swiper-button-next::after {
    content: "\ebcc";
  }
  .swiper-button-next {
    margin-left: 9px;
  }
  .more {
    display: inline-block;
    height: 36px;
    line-height: 36px;
    border-radius: 7.5px;
    margin: 0 9px;
    color: $primary;
    background-color: $gray-200;
    padding: 0 16px;
  }
  .swiper-button-next,
  .swiper-button-next {
    margin-left: 0;
  }
}

.gjjl {
  margin-top: 0;
  .title-block {
    display: block;
    text-align: center;
    h2 {
      color: #292859;
      position: relative;
      padding-bottom: 8px;
      &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        margin-left: -24px;
        width: 48px;
        height: 0;
        border-bottom: 3px solid #292859;
      }
    }
    div {
      font-size: 28px;
      color: $gray-200;
      line-height: 1.2;
      font-style: italic;
      opacity: 0.3;
      text-transform: uppercase;
      .last-word {
        font-weight: 800;
      }
    }
  }
}

.advantage {
  background: url("/assets/images/gjjl/parallex.jpg") top center no-repeat;
  background-size: cover;
  padding: 50px 0;
  .title-block {
    h2 {
      color: $white;
      &::before,
      &::after {
        border-bottom-color: $white;
      }
    }
  }
  .advantage-item {
    height: 100%;
    background: $gray-100;
    text-align: center;
    position: relative;
    cursor: pointer;
    &::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 0;
      height: 100%;
      background: #727fb6;
      transition: all 0.3s ease-in;
      z-index: 1;
    }
    & > * {
      position: relative;
      z-index: 1;
    }
    i {
      font-size: 30px;
      color: $gray-500;
      margin: 30px 0 20px;
      transition: all 0.3s ease-in;
    }
    .desc {
      margin-bottom: 30px;
      p {
        font-size: 10px;
        font-weight: 600;
        color: $gray-700;
        margin-bottom: 0;
        transition: all 0.3s ease-in;
      }
    }
    &:hover {
      &::before {
        width: 100%;
      }
      i {
        color: $white;
      }
      p {
        color: $white;
      }
    }
  }
}

.offer {
  --#{$prefix}swiper-bottom: 30px;
  &-swiper-button-prev,
  &-swiper-button-next {
    position: absolute;
    width: 30px;
    left: 0px;
    top: calc(50% - var(--#{$prefix}swiper-bottom) - 15px);
    z-index: 9;
    &::after {
      font-family: "novem-icons";
      font-size: 30px;
      color: #292859;
    }
  }
  &-swiper-button-prev {
    left: 0px;
    &::after {
      content: "\ebcb";
    }
  }

  &-swiper-button-next {
    left: auto;
    right: 0px;
    &::after {
      content: "\ebcc";
    }
  }

  .slider-element {
    --#{$prefix}swiper-dots-position-bottom: 0px;
    --#{$prefix}novem-slider-dots-size: 12px;
    --#{$prefix}slider-pagination-gutters: 4px;
    --#{$prefix}slider-arrow-color: #292859;
    padding-left: 40px;
    padding-right: 40px;
    .swiper {
      position: relative;
      padding-bottom: var(--#{$prefix}swiper-bottom);
      .swiper-slide {
        .offer-item {
          height: 100%;
          border: 1px solid $gray-200;
          cursor: pointer;
          .thumb {
            img {
              padding: 8px;
              transition: all 0.3s ease;
            }
          }
          .intro {
            padding: 12px;
            position: relative;
            background: $gray-50;
            &::before,
            &::after {
              content: "";
              position: absolute;
              width: 100%;
              top: 0;
              left: 0;
              height: 0;
              border-top: 1px solid $gray-200;
            }
            &::after {
              border-top-color: #727fb6;
              width: 0%;
              transition: all 0.3s ease;
            }
            p {
              text-align: center;
              line-height: 1.8;
              margin-bottom: 0;
              font-weight: 600;
              & + p {
                font-weight: normal;
                font-size: 14px;
              }
            }
          }
        }
        &.swiper-slide-active,
        &:hover {
          .offer-item {
            .thumb {
              img {
                transform: scale(1.02);
              }
            }
            .intro {
              &::after {
                width: 100%;
              }
            }
          }
        }
      }
    }
  }
}

.case {
  --#{$prefix}swiper-bottom: 30px;
  position: relative;
  &::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 38.2%;
    background: $primary;
  }
  .title-block {
    h2 {
      color: $white;
      &::after {
        border-bottom-color: $white;
      }
    }
  }
  &-swiper-button-prev,
  &-swiper-button-next {
    position: absolute;
    width: 40px;
    height: 40px;
    left: 0px;
    top: calc(50% - var(--#{$prefix}swiper-bottom) - 15px);
    z-index: 9;
    border-radius: 50%;
    background-color: #0b318f;
    color: #fff;
    display: none;
    &::after {
      font-family: "novem-icons";
      font-size: 30px;
    }
  }
  &-swiper-button-prev {
    left: 0px;
    &::after {
      content: "\ebcb";
    }
  }

  &-swiper-button-next {
    left: auto;
    right: 0px;
    &::after {
      content: "\ebcc";
    }
  }

  .slider-element {
    --#{$prefix}slider-arrow-color: #{$primary};
    --#{$prefix}novem-slider-dots-size: 12px;
    padding-left: 0;
    padding-right: 0;

    .swiper {
      position: relative;
      padding-bottom: var(--#{$prefix}swiper-bottom);
      .swiper-slide {
        height: unset;
      }
      .swiper-pagination {
        bottom: 0 !important;
      }
    }
  }
}
.case-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  background-color: #fff;
  border: 1px solid $gray-200;
  border-top: 0;
  padding: 30px 27px;
  transition: all 0.3s ease-in-out;
  position: relative;
  height: 100%;
  &::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background-color: $primary;
  }
  .item-top {
    .title {
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      font-size: 18px;
      font-weight: 600;
    }
    .intro {
      margin-top: 15px;
      padding-top: 15px;
      border-top: 1px solid $gray-200;
      background: none;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      font-size: 14px;
    }
  }
  .item-bottom {
    margin-top: 25px;
    background-color: $gray-200;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    width: 100%;
    transition: all 0.3s ease-in-out;
    .avatar {
      width: 56px;
      height: 56px;
      padding: 3px;
      position: relative;
      border-radius: 50%;
      background-color: rgba(0, 0, 0, 0.1);
      img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
      }
    }
    .info {
      flex: 1;
      margin-left: 10px;
      line-height: 1.3;
      .desc {
        overflow: hidden;
        font-size: 14px;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
    }
  }
}
.tabs {
  z-index: 1;
  .tab-item {
    width: 100%;
    margin: 0;
    .tab-link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      width: 100%;
      border-radius: 0;
      background: transparent;
      color: $white;
      font-weight: 600;
      padding: 6px 0;
      i {
        // display: none;
      }
      &::before,
      &::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 0;
        left: 0;
        bottom: 0;
        border-bottom: 1px solid $gray-500;
        transition: all 0.3s ease-in-out;
      }

      &::after {
        width: 0;
        border-bottom-color: $warning;
      }

      &.active {
        background: transparent;
        color: $warning;
        &::after {
          width: 100%;
        }
      }
    }
  }
}
.school {
  .swiper-button-prev,
  .swiper-button-next {
    position: absolute;
    width: 30px;
    left: -40px;
    top: calc(50% - 15px);
    &::after {
      font-size: 30px;
      color: #292859;
    }
  }
  .swiper-button-prev {
    left: -40px;
  }

  .swiper-button-next {
    left: auto;
    right: -40px;
  }

  .slider-element {
    --#{$prefix}swiper-dots-position-bottom: 0px;
    --#{$prefix}novem-slider-dots-size: 12px;
    --#{$prefix}slider-pagination-gutters: 4px;
    --#{$prefix}slider-arrow-color: #292859;
    .swiper {
      height: 70vw;
      position: relative;
      padding-bottom: 30px;
      .swiper-slide {
        img {
          padding: 16px;
          border: 1px solid $gray-300;
        }
      }
    }
  }
}

@include media-breakpoint-up(md) {
  #news {
    .news-item {
      .title {
        margin: 12px 12px 0;
      }
      .item-bottom {
        margin: 12px;
      }
    }
  }

  .swiper-btn {
    .more {
      padding: 0 16px;
    }
  }

  .advantage {
    background: url("/assets/images/gjjl/parallex.jpg") top center no-repeat;
    background-size: cover;
    padding: 50px 0;
    .title-block {
      h2 {
        color: $white;
        &::before,
        &::after {
          border-bottom-color: $white;
        }
      }
    }
    .advantage-item {
      height: 100%;
      background: $gray-100;
      text-align: center;
      position: relative;
      cursor: pointer;
      &::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 0;
        height: 100%;
        background: #727fb6;
        transition: all 0.3s ease-in;
        z-index: 1;
      }
      & > * {
        position: relative;
        z-index: 1;
      }
      i {
        font-size: 48px;
        color: $gray-500;
        margin: 30px 0 20px;
        transition: all 0.3s ease-in;
      }
      .desc {
        margin-bottom: 30px;
        p {
          font-size: 14px;
          font-weight: 600;
          color: $gray-700;
          margin-bottom: 0;
          transition: all 0.3s ease-in;
        }
      }
      &:hover {
        &::before {
          width: 100%;
        }
        i {
          color: $white;
        }
        p {
          color: $white;
        }
      }
    }
  }
  .offer {
    --#{$prefix}swiper-bottom: 0px;
    &-swiper-button-prev,
    &-swiper-button-next {
      position: absolute;
      width: 30px;
      left: 0px;
      top: calc(50% - var(--#{$prefix}swiper-bottom) - 15px);
      &::after {
        font-family: "novem-icons";
        font-size: 30px;
        color: #292859;
      }
    }
    &-swiper-button-prev {
      left: 0px;
      &::after {
        content: "\ebcb";
      }
    }

    &-swiper-button-next {
      left: auto;
      right: 0px;
      &::after {
        content: "\ebcc";
      }
    }

    .slider-element {
      --#{$prefix}swiper-dots-position-bottom: 0px;
      --#{$prefix}novem-slider-dots-size: 12px;
      --#{$prefix}slider-pagination-gutters: 4px;
      --#{$prefix}slider-arrow-color: #292859;
      .swiper {
        position: relative;
        padding-bottom: var(--#{$prefix}swiper-bottom);
        .swiper-pagination {
          display: none;
        }
      }
    }
  }

  .case {
    &-swiper-button-prev,
    &-swiper-button-next {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .slider-element {
      padding: 0 45px;

      .swiper {
        .swiper-btn {
          display: flex;
        }
      }
    }
  }
  .tabs {
    .tab-item {
      .tab-link {
        font-size: 20px;
        i {
          display: block;
        }
      }
    }
  }
  .school {
    .slider-element {
      .swiper {
        height: 50vw;
        position: relative;
        .swiper-slide {
          img {
            padding: 16px;
            border: 1px solid $gray-300;
          }
        }
        .swiper-pagination {
          display: none;
        }
      }
    }
  }
}

@include media-breakpoint-up(lg) {
  .gjjl {
    .title-block {
      div {
        font-size: 48px;
      }
    }
  }
  .case {
    .slider-element {
      .swiper {
        padding-bottom: 18px;
        .case-item {
          &::before {
            height: 3px;
          }
          .item-bottom {
            margin-top: 24px;
          }
        }
      }
    }
  }
  .school {
    .slider-element {
      .swiper {
        height: 40vw;
        padding-bottom: 0;
      }
    }
  }
}

@include media-breakpoint-up(xl) {
  .swiper-btn {
    .more {
      height: 36px;
      line-height: 36px;
      border-radius: 7.5px;
      margin: 0 9px;
      padding: 0 16px;
    }
  }
  .case {
    .case-item {
      .item-top {
        .intro {
          margin-top: 16px;
          padding-top: 16px;
        }
      }
      .item-bottom {
        padding: 15px;
        .avatar {
          width: 60px;
          height: 60px;
          padding: 3px;
        }
        .info {
          margin-left: 15px;
        }
      }
    }
  }
  .school {
    .slider-element {
      .swiper {
        height: 420px;
        padding-bottom: 0;
      }
    }
  }
}
@include media-breakpoint-up(xxl) {
  #banner {
    height: calc(100vh - 116px);
    .swiper {
      .slider-caption {
        h2 {
          font-weight: 800;
        }
      }
      .slide-down {
        position: absolute;
        left: 50%;
        margin-left: -38px;
        bottom: 32px;
        width: 76px;
        height: 76px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.75);
        display: flex;
        align-items: center;
        justify-content: center;
        color: $primary;
        cursor: pointer;
        z-index: 9;
        &::before {
          content: "";
          position: absolute;
          left: 0;
          right: 0;
          top: 0;
          bottom: 0;
          background: url(/assets/images/circle-mark.png) center center
            no-repeat;
          background-size: 82% 82%;
          animation: rotate 8s linear infinite;
        }
        &:hover::before {
          animation-play-state: paused;
        }
        i {
          font-size: 1.25rem;
          display: block;
          position: relative;
          animation: MoveUpDown 0.6s ease-in-out infinite;
        }
      }
    }
  }

  #news {
    .news-item {
      .title {
        margin: 10px 10px 0;
        font-size: 18px;
      }
      .item-bottom {
        margin: 10px;
        font-size: 14px;
      }
    }
  }

  .swiper-btn {
    .swiper-button-prev,
    .swiper-button-next {
      width: 35px;
      height: 35px;
      font-size: 16px;
    }
    .swiper-button-next {
      margin-left: 0;
    }
    .more {
      height: 35px;
      line-height: 35px;
      padding: 0 20px;
      border-radius: 8px;
      margin: 0 8px;
    }
  }
  .case {
    .case-item {
      padding: 30px 24px;
      .item-bottom {
        padding: 14px;
        border-radius: 6px;
        .info {
          margin-left: 14px;
        }
      }
    }
    .slider-element {
      padding: 0 40px;
      overflow: visible;
    }
  }
  .school {
    .slider-element {
      .swiper {
        height: 420px;
      }
    }
  }
}
